//
//  BaseTableViewCell.m
//  Tour
//
//  Created by 张张烨 on 16/3/7.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "BaseTableViewCell.h"

@implementation BaseTableViewCell
//- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
//{
//    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
//    if (self) {
//        
//        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//            self.backgroundColor = COLOR_CELL_NIGHT;
//            self.textLabel.textColor = WHITE;
//        } else {
//            self.backgroundColor = COLOR_CELL_DAY;
//            self.textLabel.textColor = BLACK;
//        }
//        
//    }
//    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeColor:) name:@"changeColor1" object:nil];
//    
//    return self;
//}
//
//-(void)dealloc
//{
//    [[NSNotificationCenter defaultCenter] removeObserver:self name:@"changeColor1" object:nil];
//}
//
//- (void)changeColor:(NSNotification *)notification{
//    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//        self.backgroundColor = COLOR_CELL_NIGHT;
//        self.textLabel.textColor = WHITE;
//    } else {
//        self.backgroundColor = COLOR_CELL_DAY;
//        self.textLabel.textColor = BLACK;
//    }
//    
//    
//    
//    
//    
//}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
